public class ForLoopStringArray {

	public static void main(String[] args) {
		/*
		 * Declare a String array that holds all of our names in the class.
		 * using for each loop, read all the names and print.
		 */

		String[] studentNames = new String[6];

		studentNames[0] = "Satya";
		studentNames[1] = "Raji";
		studentNames[2] = "Meera";
		studentNames[3] = "Henry";
		studentNames[4] = "Naveen";
		studentNames[5] = "Ravi";

		for (int i = 0; i < studentNames.length; i++) {
			System.out.println("studentName in  index  " + i + " is "
					+ studentNames[i]);

			for (String names : studentNames) {
				System.out.println("Student Name   " + names);

			}
		}
	}
}
